Write-Host "PyInstaller start..." -ForegroundColor Green

pyinstaller --noconfirm --onedir --windowed `
     --icon "ide.ico" `
     --name "CodeIdea" `
     --clean `
     --hidden-import "PyQt5.QtWidgets" `
     --hidden-import "PyQt5.QtCore" `
     --hidden-import "PyQt5.QtGui" `
     --hidden-import "os" `
     --hidden-import "sys" `
     --hidden-import "json" `
     --hidden-import "subprocess" `
     --exclude-module "tests" `
     --add-data "resources;resources/" `
     --add-data "ide.ico;." `
     "main.py"

Write-Host "Build completed!" -ForegroundColor Green
Pause